package com.hc.springboot.entity;

import java.io.Serializable;

import com.hc.springboot.enums.UserSexEnum;

public class UserEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
	private String username;
	private String password;
	private UserSexEnum userSex;
	private String nickname;
	
	public UserEntity() {
		super();
	}

	public UserEntity(Long id, String username, String password,
			UserSexEnum userSex) {
		super();
		this.id = id;
		this.username = username;
		this.password = password;
		this.userSex = userSex;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public UserSexEnum getUserSex() {
		return userSex;
	}

	public void setUserSex(UserSexEnum userSex) {
		this.userSex = userSex;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	@Override
	public String toString() {
		return "UserEntity [id=" + id + ", username=" + username
				+ ", password=" + password + ", userSex=" + userSex
				+ ", nickname=" + nickname + "]";
	}
	
}
